Set Property v1.4 for Novell Netware 3.x. By K.F.Soft, Denmark, Copyright October 1994. Usage of this program is free. The program may not be sold. It can be distributed in the original ZIP-file at no charge. SetProp is distributed as is, without any express or implied warranty. Portions of SetProp Copyright (C) 1983-1990 Novell Inc. All rights reserved. If you decide to use this program please send me a little note with the following information: Type of organization. Number of servers. Number of users. Number of workstations. Thanks in advance! Comments, bugs and suggestions to kf@mmf.ruc.dk Purpose Sets or displays the content of Netware bindery properties. Should only be used with string properties (names etc.). Syntax SETPROP options [servername/]objectname propertyname [value] SETPROP options [servername/]objectname propertyname(ix) [value] SETPROP options [servername/]objectname:propertyname=value SETPROP options [servername/]objectname:propertyname(ix)=value SETPROP options [servername/]objectname !ON [value] SETPROP options [servername/]objectname:!ON=value Options: /Q Quiet mode. Nothing will be displayed. /O:x Object type. Both object type numbers and abbreviations can be used for the x parameter. See below for the possible values. If no object type is given, user type is assumed. By using * any object type will be processed. /S:xy Property security level. Sets the security mask for the property. x determines who can see/read the property. y determines who can write/change/delete the property. The following values are valid for the x parameters: A Anyone connected to the server L Anyone logged in to the server O Supervisor equivalents, object itself, managers and equivalents S Supervisor - Don't change this security level /S option is not valid with !ON (see below). /D Display property security information. Parameters: servername if the object is on another server than the current one the server parameter can be used to select the server. objectname is the name of the object owning the property. If wildcards are used SetProperty will run through all matching objects. A - refers to the currently logged in object. If the objectname starts with a #, SetProperty will run through all members of the group. If a type is specified only the members matching the specified type will be processed. Instead of the object name you can use the object ID in hex notation preceding it with \x, ie. \x68000003 propertyName is the name of the property to be set/changed/displayed. If it doesn't exist it will be created (if a value is given). This requires supervisor equivalence. A number ix inside () after the propertyname indicates that the property is a string array. ix is the number of the string referred to. A string array can consist of up to 20 strings with a total length of 980 bytes (including zero's). !ON as propertyname tells SetProperty to change the objects name to the one indicated by value. value The new value of the named property. The value string should be enclosed by " if it is more than one word. If no value is given, the current value will be displayed. If value is - the property will be removed from the bindery. The different object types are : No Abbreviation Description 1 us User 2 ug User group 3 pq Print queue 5 js Job Server 6 gw Gateway 7 ps Print server 8 aq Archive queue 9 as Archive server 10 jq Job queue 11 ad Administration * All object types Examples SETPROP /O:ug EVERYONE IDENTIFICATION "Each and everyone" Sets the full name (IDENTIFICATION) for group (OT=2) EVERYONE to the string "Each and everyone". SETPROP #EVERYONE MAIL_OPTIONS(1) "-" Deletes the Charon/Mercury forward address for all users on the current server (the property is not deleted, only the first field in the property). SETPROP - M "MENU1" Creates a property M for the current user with the value "MENU1" which indicates the menu definition for that user. SETPROP /S:-S MIKE:MAIL_OPTIONS(1)="mike@candy.south.edu" Set the Charon & Mercury forward address for user MIKE to mike@candy.south.edu (the first string in MAIL_OPTIONS). Prevent MIKE (and all others) from changing the MAIL_OPTIONS but don't change the read access to the property. SETPROP S1/#STAFF* IDENTIFICATION Displays the full name for all members of groups starting with "STAFF" on server S1. SETPROP S2/JOE !ON JOEP Renames the user JOE to JOEP on server S2. SETPROP \x68000003:!ON JUNE Set the name of the object with bindery ID 68000003h to JUNE. SETPROP /o:* A*:IDENTIFICATION Display full name for all users beginning with A of all types.